// class BlockListBean {
//   String? avatar;
//   int? age;
//   String? nickname;
//   String? country;
//   String? userId;
//   String? updateTime;
//
//   BlockListBean({this.avatar, this.age, this.nickname, this.country, this.userId, this.updateTime});
//
//   BlockListBean.fromJson(Map<String, dynamic> json) {
//     if (json["avatar"] is String) {
//       avatar = json["avatar"];
//     }
//     if (json["age"] is num) {
//       age = (json["age"] as num).toInt();
//     }
//     if (json["nickname"] is String) {
//       nickname = json["nickname"];
//     }
//     if (json["country"] is String) {
//       country = json["country"];
//     }
//     if (json["user_id"] is String) {
//       userId = json["user_id"];
//     }
//     if (json["update_time"] is String) {
//       updateTime = json["update_time"];
//     }
//   }
//
//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> _data = <String, dynamic>{};
//     _data["avatar"] = avatar;
//     _data["age"] = age;
//     _data["nickname"] = nickname;
//     _data["country"] = country;
//     _data["user_id"] = userId;
//     _data["update_time"] = updateTime;
//     return _data;
//   }
// }

class BlockListBean {
  String? nickName;
  String? avatar;
  int? age;
  String? registerCountry;
  String? broadcasterId;
  int? gender;

  BlockListBean({this.nickName, this.avatar, this.age, this.registerCountry, this.broadcasterId, this.gender});

  BlockListBean.fromJson(Map<String, dynamic> json) {
    if (json["nickName"] is String) {
      nickName = json["nickName"];
    }
    if (json["avatar"] is String) {
      avatar = json["avatar"];
    }
    if (json["age"] is num) {
      age = (json["age"] as num).toInt();
    }
    if (json["registerCountry"] is String) {
      registerCountry = json["registerCountry"];
    }
    if (json["broadcasterId"] is String) {
      broadcasterId = json["broadcasterId"];
    }
    if (json["gender"] is num) {
      gender = (json["gender"] as num).toInt();
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["nickName"] = nickName;
    _data["avatar"] = avatar;
    _data["age"] = age;
    _data["registerCountry"] = registerCountry;
    _data["broadcasterId"] = broadcasterId;
    _data["gender"] = gender;
    return _data;
  }
}
